<?php get_header( 'buddypress' ); ?>

	<div id="container">
        <div id="content">

		<?php do_action( 'bp_before_register_page' ); ?>

		<div class="page" id="register-page">

			<form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">

			<?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
				<?php do_action( 'template_notices' ); ?>
				<?php do_action( 'bp_before_registration_disabled' ); ?>

					<p>User registration is currently not allowed.</p>

				<?php do_action( 'bp_after_registration_disabled' ); ?>
			<?php endif; // registration-disabled signup setp ?>

			<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>

				<p class="page-title">Create an Account</p>

				<?php do_action( 'template_notices' ); ?>

				<p id="registrationP">Registering for this site is easy, just fill in the fields below and we'll get a new account set up for you in no time. After registration, you'll be able to start submitting Short Sales right away!</p>

				<?php do_action( 'bp_before_account_details_fields' ); ?>

				<div class="register-section" id="basic-details-section">

					<?php /***** Basic Account Details ******/ ?>

					<h1>Account Details</h1>

					<label for="signup_username">Username (required)</label>
					<?php do_action( 'bp_signup_username_errors' ); ?>
					<input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
                    <p class="description">You will use this to login to the site...</p>

					<label for="signup_email">Email Address (required)</label>
					<?php do_action( 'bp_signup_email_errors' ); ?>
					<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />

					<label for="signup_f_name">First Name (required)</label>
					<?php do_action( 'bp_signup_f_name_errors' ); ?>
					<input type="text" name="signup_f_name" id="signup_f_name" value="<?php if ( isset($_POST['signup_f_name']) ) { echo $_POST['signup_f_name']; } ?>" />

					<label for="signup_l_name">Last Name (required)</label>
					<?php do_action( 'bp_signup_l_name_errors' ); ?>
					<input type="text" name="signup_l_name" id="signup_l_name" value="<?php if ( isset($_POST['signup_l_name']) ) { echo $_POST['signup_l_name']; } ?>" />

					<label for="signup_phone">Phone (required)</label>
					<?php do_action( 'bp_signup_phone_errors' ); ?>
					<input type="text" name="signup_phone" id="signup_phone" value="<?php if ( isset($_POST['signup_phone']) ) { echo $_POST['signup_phone']; } ?>" />

					<label for="signup_password">Choose a Password (required)</label>
					<?php do_action( 'bp_signup_password_errors' ); ?>
					<input type="password" name="signup_password" id="signup_password" value="" />

					<label for="signup_password_confirm">Confirm Password (required)</label>
					<?php do_action( 'bp_signup_password_confirm_errors' ); ?>
					<input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />

				</div><!-- #basic-details-section -->

				<?php do_action( 'bp_after_account_details_fields' ); ?>

				<?php do_action( 'bp_before_registration_submit_buttons' ); ?>

				<div class="submit" style="padding: 20px 0;float:left;">
					<input type="submit" name="signup_submit" id="signup_submit" value="Complete Sign Up" />
				</div>

				<?php do_action( 'bp_after_registration_submit_buttons' ); ?>

				<?php wp_nonce_field( 'bp_new_signup' ); ?>

			<?php endif; // request-details signup step ?>

			<?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>

				<p class="page-title">Sign Up Complete!</p>

				<?php do_action( 'template_notices' ); ?>
				<?php do_action( 'bp_before_registration_confirmed' ); ?>

				<?php if ( bp_registration_needs_activation() ) : ?>
					<p>You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.</p>
				<?php else : ?>
					<p>
                    	You have successfully created your account! Please log in using the username and password you have just created.<br />
                        <a href="<?php echo wp_login_url( site_url( '/' . bp_get_members_root_slug() . '/ ' ) ); ?>">Log in</a>
					</p>
				<?php endif; ?>

				<?php do_action( 'bp_after_registration_confirmed' ); ?>

			<?php endif; // completed-confirmation signup step ?>

			<?php do_action( 'bp_custom_signup_steps' ); ?>

			</form>

		</div>

		<?php do_action( 'bp_after_register_page' ); ?>

		</div><!-- .padder -->
	</div><!-- #content -->

<?php get_footer( 'buddypress' ); ?>